import React from 'react';
import {
  NavigatorIOS,
} from 'react-native';

import TabBarViewContainer from '../containers/TabBarViewContainer';
import Util from '../common/utils';

export default class App extends React.Component{

  constructor(props) {
      super(props);
      //初始化登录信息
      Util.getStorage('userlogininfo', (res) => {
          console.log('app开始');
          console.log(res);
          global.user.accessTicket = res.accessTicket;
          global.user.userId = res.userId;
      }, (err) => {
          console.log(err);
      })


  }


  render() {

      return (
          <NavigatorIOS
              initialRoute={{title: 'TabBarView', component: TabBarViewContainer}}
              navigationBarHidden={true}
              style={{flex: 1}}
          />
      )
  }
}
